#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;

int main()
{
	char *p[10];
	//char (*q)[10];

	for(int i=0;i<10;i++)
	{
		char *x = new char[100];
		strcpy(x,"abcdef");
		p[i] = x;
		printf("x = %ld\n",x);
		cout<<"p[i] = "<<p[i]<<endl;
	}

	cout<<endl;
	for(int i=0;i<10;i++)
	{
		cout<<p[i]<<endl;
	}

	return 0;
}
